package org.pp.admin.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.pp.annotations.SearchField;
import org.pp.dto.PageDto;

@Getter
@Setter
public class SysUserPage extends PageDto {

    //admin
    //user_name= 'admin' and name='admin' 默认是and连接多个字段的查询

    @Schema(description = "用户名")
    //@SearchField(value = "user_name",operator = "%",pattern = "^[a-zA-Z]+$")
    @SearchField(value = "user_name",operator = "%")
    private String userName;

    @Schema(description = "姓名/昵称")
    //@SearchField(value = "name",operator = "%",pattern = "^[^a-zA-Z\\d$]+$")
    @SearchField(value = "name",operator = "%",orJoin = true)
    private String name;

}
